Name :String lookup

Symbol :FIND

Illustrate:

    Look for the position of the character in IN1 where IN2 first started to appear, and output 0 if IN2 is not found.

Image:

Parameter:

Parameter Statement Type Description
IN1 Input STRING
Enter the string IN1
IN2 Input STRING
Enter the string IN2
OUT Output USINT
Output location

Example:

LD:

ST:



Interpretation:

parameter operandvalue
IN1TagIn1Enter a value:’abcdefg’
IN2TagIn2Enter a value:’def’
OUTTagOutOutput value:4
    IN1 and IN2 input string type data, and OUT outputs the found location.